

<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code: 'user.label', default: 'User')}" />
  <title><g:message code="default.change.pwd.label" /></title>
</head>
<body>
  <div class="nav">
	<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
  </div>
  <div class="body">
	<h1><g:message code="default.change.pwd.label" /></h1>
	<g:if test="${flash.message}">
	  <div class="message">${flash.message}</div>
	</g:if>
	<g:hasErrors bean="${user}">
	  <div class="errors">
		<g:renderErrors bean="${user}" as="list" />
	  </div>
	</g:hasErrors>
	<g:form method="post" >
	  <g:hiddenField name="id" value="${user?.id}" />
	  <g:hiddenField name="version" value="${user?.version}" />
	  <div class="dialog">
		<table>
		  <tbody>

		  <tr class="prop">
			<td valign="top" class="name">
			  <label for="oldPassword"><g:message code="user.old.pwd" default="Password" /></label>
			</td>
			<td valign="top"">
			  <input type="password" maxlength="16" id="oldPassword" name="oldPassword" value=""/>
			</td>
		  </tr>
		  
		  <tr class="prop">
			<td valign="top" class="name">
			  <label for="newPassword1"><g:message code="user.new.pwd" default="Password" /></label>
			</td>
			<td valign="top"">
			  <input type="password" maxlength="16" id="newPassword1" name="newPassword1" value=""/>
			</td>
		  </tr>
		  
		  <tr class="prop">
			<td valign="top" class="name">
			  <label for="newPassword2"><g:message code="user.new.pwd.again" default="Password" /></label>
			</td>
			<td valign="top"">
			  <input type="password" maxlength="16" id="newPassword2" name="newPassword2" value=""/>
			</td>
		  </tr>


		  </tbody>
		</table>
	  </div>
	  <div class="buttons">
		<span class="button"><g:actionSubmit class="save" action="updateNewPwd" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
	  </div>
	</g:form>
  </div>
</body>
</html>
